import request from '/@/utils/request';

const deviceApi = {

	awakeDevice(data: object) {
		return request({
			url: '/api/v1/smoke/mqtt/awakeDevice',
			method: 'post',
			data,
		})
	},

	// 升级设备
	upgradeDevice(data: object) {
		return request({
			url: '/api/v1/smoke/mqtt/upgradeDevice',
			method: 'put',
			data,
		})
	},

	// 读取参数
	readParams(data: object) {
		return request({
			url: '/api/v1/smoke/mqtt/getDeviceParams',
			method: 'post',
			data,
		})
	},

	// 修改参数
	updateParams(data: object) {
		return request({
			url: '/api/v1/smoke/mqtt/updateDeviceParams',
			method: 'post',
			data,
		})
	},


	closeVideoStream(data: object) {
		return request({
			url: '/api/v1/smoke/mqtt/closeVideoStream',
			method: 'post',
			data,
		})
	},

	continueDevice(data: object) {
		return request({
			url: '/api/v1/smoke/mqtt/continueVideoStream',
			method: 'post',
			data,
		})
	},
}
export default deviceApi